#define _CRT_SECURE_NO_WARNINGS 1

#include "Queue.h"

void QueueTest()
{
	Queue q;
	QueueInit(&q);

	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);
	QueuePrint(&q);

	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);
	QueuePrint(&q);

	QueueDestroy(&q);
}

void QueueTest1()
{
	Queue q;
	QueueInit(&q);

	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);

	printf("Front = %d\n", QueueFront(&q));
	printf("Back = %d\n", QueueBack(&q));
	printf("Size = %d\n", QueueSize(&q));
	QueuePrint(&q);

	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);

	printf("Front = %d\n", QueueFront(&q));
	printf("Back = %d\n", QueueBack(&q));
	printf("Size = %d\n", QueueSize(&q));
	QueuePrint(&q);

	QueueDestroy(&q);
}
int main()
{
	QueueTest();
	QueueTest1();

	return 0;
}